package com.huawei.zyb.taskManager.application.task.dto;

import java.util.Map;

/**
 * 任务统计数据传输对象
 */
public class TaskStatisticsDTO {
    
    private Long totalTasks;
    private Map<String, Long> tasksByStatus;
    private Map<String, Long> tasksByPriority;
    private Double completionRate;
    
    public TaskStatisticsDTO() {
    }
    
    public TaskStatisticsDTO(Long totalTasks, Map<String, Long> tasksByStatus, 
                            Map<String, Long> tasksByPriority, Double completionRate) {
        this.totalTasks = totalTasks;
        this.tasksByStatus = tasksByStatus;
        this.tasksByPriority = tasksByPriority;
        this.completionRate = completionRate;
    }
    
    public Long getTotalTasks() {
        return totalTasks;
    }
    
    public void setTotalTasks(Long totalTasks) {
        this.totalTasks = totalTasks;
    }
    
    public Map<String, Long> getTasksByStatus() {
        return tasksByStatus;
    }
    
    public void setTasksByStatus(Map<String, Long> tasksByStatus) {
        this.tasksByStatus = tasksByStatus;
    }
    
    public Map<String, Long> getTasksByPriority() {
        return tasksByPriority;
    }
    
    public void setTasksByPriority(Map<String, Long> tasksByPriority) {
        this.tasksByPriority = tasksByPriority;
    }
    
    public Double getCompletionRate() {
        return completionRate;
    }
    
    public void setCompletionRate(Double completionRate) {
        this.completionRate = completionRate;
    }
    
    @Override
    public String toString() {
        return "TaskStatisticsDTO{" +
                "totalTasks=" + totalTasks +
                ", tasksByStatus=" + tasksByStatus +
                ", tasksByPriority=" + tasksByPriority +
                ", completionRate=" + completionRate +
                '}';
    }
}